What is the maximum length of int (11), and what is the maximum length of varchar in MySQL? What is the maximum length of int (11)?In the SQL statement, int represents the type of field you want to create, int represents an integer, and 11
Original address: 76549503
Today when adding data, I found that when the data type is int (11), I then let the user add data, the maximum input length is 11 bits, the result, add data add not, cause the problem, I changed to the maximum
An exact numeric data type that uses integer data.
bigint
Integer data (all numbers) from -2^63 (-9223372036854775808) to 2^63-1 (9223372036854775807). The storage size is 8 bytes.
P.S. bigint already has a length, in the MySQL build table length,
The recent use of MySQL database has encountered several types of numbers, mainly int,bigint,smallint and tinyint. One of the more confusing is the difference between int and smallint. Today on the Internet to find out carefully, find the following
bigintInteger data (all numbers) from -2^63 (-9223372036854775808) to 2^63-1 (9223372036854775807). The storage size is 8 bytes.p.s. bigint already has length, in MySQL build table length, just used to display the number of digitsIntInteger data
After defining the int data type in mysql, what is the length entered later? The following describes the length of the int data type in mysql.
In mysql, the maximum length of the int data type is 11 bits and the minimum length is 4 bits.
This
Blog. csdn. netspring21starticledetails7302.163 recently encountered a variety of numeric types when using the mysql database, including int, bigint, smallint, and tinyint. The difference between int and smallint is confusing. Today, I searched for
Int
Integer data (all numbers) from -2^31 (-2,147,483,648) to 2^31–1 (2,147,483,647). The storage size is 4 bytes. The SQL-92 synonym for int is integer
varchar
Length is 0-255 characters OH
What is the meaning of the numbers following the int
You see this article from HTTP://WWW.CNBLOGS.COM/AYANMWReprinted from: http://blog.csdn.net/daydreamingboy/article/details/6310907Analyze the length of the MySQL data typeMySQL has several data types that can limit the "length" of a type, with char (
if the setting in an item is varchar (So, of course, the English isSo what about Chinese?Utf-8 in Chinese is 3 bytesSo, does this varchar (50) have only 16 characters to save? No, this is the case with MySQL, but not after 5.0.MySQL varchar (50)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.